package com.ruoyi.rsikManage.service.Impl;

import com.ruoyi.rsikManage.domain.Config;
import com.ruoyi.rsikManage.domain.vo.BroadcastSwitch;
import com.ruoyi.rsikManage.mapper.BroadcastMapper;
import com.ruoyi.rsikManage.mapper.ConfigMapper;
import com.ruoyi.rsikManage.service.ConfigService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ConfigServiceImpl implements ConfigService {
    @Autowired
    private ConfigMapper configMapper;
//    @Override
//    public List<Config> getConfigList() {
//        return configMapper.getConfigList();
//    }
    @Override
    public int getBroadcastPlaySwitchStatus() {
        return configMapper.getBroadcastPlaySwitchStatus();
    }

    @Override
    public void updateBroadcastPlaySwitch(Integer switchStatus) {
        configMapper.updateBroadcastPlaySwitch(switchStatus);
    }

    @Override
    public List<BroadcastSwitch> selectBroadcastSwitchList() {
        return configMapper.selectBroadcastSwitchList();
    }

}
